<template>
  <div>
    <h2 @click="counterStroe.addCount">A组件---{{ counterStroe.count }}</h2>
  </div>
</template>

<script setup>
// 导入仓库
import useCounterStore from "./Store/modules/Counter";
// 使用
const counterStroe = useCounterStore();
</script>

<style lang="scss" scoped>
</style>